package com.vichat.common.service;

import com.vichat.common.vo.excel.Column;
import com.vichat.common.vo.excel.ExcelDataWrapper;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

import java.util.List;
import java.util.Map;

/**
 */
public interface IExcelParser {


    public void put2Cache(ExcelDataWrapper excelDataWrapper, String unionKey);

    public ExcelDataWrapper parseFamPhone(MultipartFile excelFile, HttpServletRequest request, String typeTag) throws Exception;

    public ExcelDataWrapper parseCanPhone(MultipartFile excelFile, HttpServletRequest request, String typeTag) throws Exception;

    public ExcelDataWrapper parseDevice(MultipartFile excelFile, HttpServletRequest request, String typeTag) throws Exception;

    public ExcelDataWrapper parse(MultipartFile excelFile, HttpServletRequest request, String typeTag) throws Exception;

    public ExcelDataWrapper parseUser(MultipartFile excelFile, HttpServletRequest request, String typeTag) throws Exception;

    public int execute(ExcelDataWrapper excelDataWrapper, String unionKey, String typeTag) throws Exception;

    public List<Column> getDataGridColumnsDef(String typeTag);

    public ExcelDataWrapper getExcelDataWrapperCache(String unionKey);


    public Map<String, String> getExcelInfo(long userType);

    public List getEntityList(String unionKey);

    public List getErrorList(String unionKey);
}
